import {getDriverInfo} from '@/api/user'
const app = getApp();
Page({
  data: {
     userInfo:{}
  },
  onLoad: function() {
    // 可以在这里加载页面数据
  },

  onShow(){
    this.getDriverInfo();
  },

  async getDriverInfo(){
    const {userName} = app.globalData.userInfo || {}
    const res = await getDriverInfo(userName)
    this.setData({
      userInfo: res
    })
  }

});
